//
//  TextButton.h
//  LabanBrowser
//
//  Created by Xh2 on 3/26/13.
//  Copyright (c) 2013 VNG. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "StaticVariables.h"
@class TextButton;

@protocol TextButtonDelegate <NSObject>

@optional
-(void)onClickTextButton:(TextButton*)_textButton;

@end



@interface TextButton : UICollectionViewCell

typedef enum{
    MenuHomePage,
    MenuDownload,
    MenuSearchOnPage,
    MenuSettings,
    MenuRefresh,
    MenuHistory,
    MenuTheme,
    MenuQuit,
    MenuNightMode,
    MenuOrientation,
    MenuCopy,
    MenuBrightness,
    MenuQRCode,
    MenuHelp
}MenuItemType;


- (IBAction)onClick:(id)sender;
@property (weak, nonatomic) IBOutlet UIImageView *iconImage;
@property (weak, nonatomic) IBOutlet UIButton *backgroundBT;

@property (weak, nonatomic) IBOutlet UILabel *titleLB;
@property (nonatomic) id<TextButtonDelegate> delegate;
@property (nonatomic) MenuItemType menuOption;

@end
